package com.younion.common.exception;

/**
 * @Description:系统自定义业务异常
 * @author linyeming
 * @version 1.0.0.0
 */
public class BusinessException extends Exception {
	/** 异常的消息。 */
	private String message;

	public BusinessException(Throwable throwable) {
		this.message = throwable.getMessage();
	}

	public BusinessException(String message) {
		this.message = message;
	}

	public BusinessException(String message, Throwable throwable) {
		this.message = message;
	}

	/**
	 * 返回异常信息
	 * 
	 * @return String：异常信息
	 */
	public String getMessage() {
		return message;
	}
}
